import { Dimensions } from 'react-native';

// 本模块用于获取设备屏幕的宽高
global.w = Dimensions.get('window').width;
global.h = Dimensions.get('window').height;
global.p2d = (size)=>{
    return size*w/h;
};